package com.kavin.design.factory.simpleFactory;

import com.kavin.design.factory.Car;

public class TestSimpleFactoryCar {//调用者
    public static void main(String[] args) {
        //创建汽车
        Car audi = CarFactory.createCar("audi");//创建者
        Car byd = CarFactory.createCar("byd");
        audi.run();
        byd.run();
    }
}